<?php

namespace IDock\Insurance\ZYIC\Request;

use IDock\Insurance\ZYIC\Request\AllZYICRequest;
use IDock\Insurance\ZYIC\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalStatusVisitor;

class ProposalStatusRequest extends AllZYICRequest
{
    public $route = 'channelInterface/V16';

    protected $response = ProposalStatusResponse::class;

    protected $urlTip = '投保单详情';

    /*** @var  ProposalStatusVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'proposalNo' => $this->visitor->biInquiryNo ?: $this->visitor->ciInquiryNo,
        ];
    }
}
